package com.core.cloundbusinessapi.system.user.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Getter
@Setter
public class CloudSystemUpdateProfileVO {

    @Size(max = 50, message = "用户名长度不超过50")
    private String userName;

    @Size(max = 50, message = "真实姓名长度不超过50")
    private String realName;

    @Email(message = "邮箱格式不正确")
    private String email;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    private Integer sex; // 1男2女
    private String avatar;
}

